﻿using System;
using System.Collections.Generic;
using NakedObjects;

namespace HRMDomain
{
    [Bounded]
    public class EmployeeClass:Base
    {
        public virtual EmployeeClassType Class { get; set; }
        [Mask("d")]
        public virtual DateTime StartDate { get; set; }
        [Mask("d")]
        public virtual DateTime? EndDate { get; set; }
        public virtual Employee Employee { get; set; }

        public string Title()
        {
            TitleBuilder t = new TitleBuilder();
            t.Append(Class.Name);
            return t.ToString();
        }
    }
}
